<?php
class Form_Element_Location extends Zend_Form_Element_Text {

   public function init() {      
     $this->setLabel('Location:');
     $this->setAttrib('maxlength', 50);
     //@todo what about validator?
     //$this->addValidator('Alnum', true, array(true));
     $this->addValidator('StringLength', true, array(0, 60));
     $this->addFilter('StringTrim');
   }
}